<template>
  <div class="home-box">
    <h1>欢迎你！{{ username }}</h1>
    <DateUtils/>
  </div>
</template>

<script>
import DateUtils from './DateUtils'
export default {
  name: 'Home',
  components: { DateUtils },
  data: () => ({ username: localStorage.getItem('username')||'' })
}
</script>

<style scoped>
.home-box{
  height: 100%;          /* 现在能真正拿到 el-main 的剩余高度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f1f1f3;
}
h1{margin-bottom: 30px;font-size: 50px;}
</style>